﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace Sys.API.DTO
{
    public class WebApiMsg
    {
        /// <summary>
        /// status 为返回状态 0 为成功 其他值 为失败
        /// </summary>
        public int status { get; set; }

        /// <summary>
        /// 失败时的错误信息
        /// </summary>
        public string message { get; set; }
    }
    /// <summary>
    /// WebApi返回数据的封装类
    /// </summary>
    public class WebApiMsg<T>:WebApiMsg
    {
       

        /// <summary>
        /// 当返回数据或者列表时存放对应的数据
        /// </summary>
        public T data { get; set; }
    }

    public class AccessToken
    {
        /// <summary>
        /// status 为返回状态 0 为成功 其他值 为失败
        /// </summary>
        public int status { get; set; }
        public string message { get; set; }

        ///access_token
        public string access_token { get; set; }
        public int expires_in { get; set; }
    }

    public class RefreshToken {
        public int status { get; set; }
        public string message { get; set; }
        public string refresh_token { get; set; }
    }
}